package com.efast.cafe.portal.controller.common;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.efast.cafe.framework.controller.AbstractController;
import com.efast.cafe.portal.service.company.IPortalCompanyUserService;
@Controller
public class CommonCompanyUserController extends AbstractController{
	
	@Autowired
	private  IPortalCompanyUserService  portalCompanyUserService;
	
	
	
	


	
	/**
	 *  加载用户列表及部门职位
	 * @param model
	 * @param request
	 * @param response
	 * @return
	 */
//	@RequestMapping(value = "/frame_center/common/companyuserlist")
//	public @ResponseBody DataTableVo<PortalCompanyUserBean> getListUserByCompanyUser(
//			@ModelAttribute PortalCompanyUserQueryBean queryBean){
//		
//		//设置当前用户id 以区别不是是管理员查询 缺
//		
//		try {
//		 portalCompanyUserService.getListUserByCompanyUser(queryBean);
//		} catch (Exception e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		}
//		return outPageJSONArray_bootstrapDatatable(portalCompanyUserService.getListUserByCompanyUser(queryBean));
//	}

	
	/**
	 *  加载用户列表及其顶级部门
	 * @param model
	 * @param request
	 * @param response
	 * @return
	 */
//	@RequestMapping(value = "/frame_center/common/companyusertoporglist")
//	public @ResponseBody DataTableVo<PortalCompanyUserBean> getListUserTopOrgByCompanyUser(
//			@ModelAttribute PortalCompanyUserQueryBean queryBean){
//		
//		//设置当前用户id 以区别不是是管理员查询 缺
//		
//		return outPageJSONArray_bootstrapDatatable(portalCompanyUserService.getListUserTopOrgByCompanyUser(queryBean));
//	}
	
	
}
